 
/* 左侧列表 */
.sidebar {
  height: 100%;   
  float: left;
  width: 200px;
  color: #f4f4f4;
  background-color: #2e3238;
}
.m-card{
  padding: 12px;
  border-bottom: solid 1px #24272C;
}
.m-card footer {
  margin-top: 10px;
}

.m-card .avatar, .name {
  vertical-align: middle;
}
.m-card .avatar {
  border-radius: 2px;
}
.m-card .name {
  display: inline-block;
  margin: 0 0 0 15px;
  font-size: 16px;
}
.m-card .search {
  padding: 0 10px;
  width: 100%;
  font-size: 12px;
  color: #fff;
  height: 30px;
  line-height: 30px;
  border: solid 1px #3a3a3a;
  border-radius: 4px;
  outline: none;
  background-color: #26292E;
}
/* tab标签 */

.m-tab {
  overflow: hidden;
  position: relative;
  padding-bottom: 4px;
  border-bottom: solid 1px #24272C;
}
.m-tab .tab_item {
  float: left;
  width: 33.33333333%;
  /* position: relative; */
  line-height: 34px;
  text-align: center;
}
.m-tab .tab_item a {
  /* display: inline-block; */
  text-align: center;
  color: #fff;
  text-decoration: none;
}
.m-tab .tab_item:after {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  width: 0;
  height: 20px;
  border-right: 1px solid #24272c;
}
/* 人员列表 */

.m-list li {
  padding: 12px 15px;
  border-bottom: 1px solid #292C33;
  cursor: pointer;
  transition: background-color .1s;
}
.m-list li:hover {
  background-color: rgba(255, 255, 255, 0.03);
}
.m-list li.active {
  background-color: rgba(255, 255, 255, 0.1);
}
.m-list .avatar, .name {
  vertical-align: middle;
}
.m-list .avatar {
  border-radius: 2px;
}
.m-list .name {
  display: inline-block;
  margin: 0 0 0 15px;
}

/* 右侧内容 */
.main {
  height: 100%;
  position: relative;
  overflow: hidden;   
  background-color: #eee;
}
.m-text {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
}
.chat .m-message {
  height: calc(100% - 10pc);
}

.m-message {
  padding: 10px 15px;
  overflow-y: scroll;
} 
.m-message li {
      margin-bottom: 15px;
  }
  .m-message .time {
      margin: 7px 0;
      text-align: center;
  }
  .m-message .time>span {
    display: inline-block;
    padding: 0 18px;
    font-size: 12px;
    color: #fff;
    border-radius: 2px;
    background-color: #dcdcdc;
}
.m-message .avatar {
      float: left;
      margin: 0 10px 0 0;
      border-radius: 3px;
  }
  .m-message .text {
      display: inline-block;
      position: relative;
      padding: 0 10px;
      max-width: 'calc(100% - 40px)';
      min-height: 30px;
      line-height: 2.5;
      font-size: 12px;
      text-align: left;
      word-break: break-all;
      background-color: #fafafa;
      border-radius: 4px;
  }
  .m-message .text:before {
    content: " ";
    position: absolute;
    top: 9px;
    right: 100%;
    border: 6px solid transparent;
    border-right-color: #fafafa;
}
  
  .self {
      text-align: right;
  }
  .self .avatar {
    float: right;
    margin: 0 0 0 10px;
}
.self .text {
    background-color: #b2e281;
    
}
.self .text:before {
  right: inherit;
  left: 100%;
  border-right-color: transparent;
  border-left-color: #b2e281;
}

/* 输入框 */

.m-text {
  height: 80px;
  border-top: solid 1px #ddd;
}
.m-text textarea {
  padding: 10px;
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  font-family: "Micrsofot Yahei";
  resize: none;
}
.m-text button{
  position: absolute;
  right: 0;
  bottom: 5px;
  padding: 10px 15px;
  border-radius: 5px;
  background: #037bf7;
  color: #fff;
  border: none;
  margin-left: 10px;
}
.m-text input{
  width: 100%;
  height: 75%;
  white-space: pre-wrap;
  word-break: normal;
  border: none;
}


.gray{
  color: #585757;
}
.chat-with{
  text-align: center;
  /* margin: 10px auto; */
  border-bottom: 1px solid #d8d6d6;
  padding: 12px 0;
}